package com.fr.report.web.ui;

import com.fr.report.js.JavaScriptImpl;
import com.fr.report.web.event.ActionUtils;
import com.fr.report.web.event.Listener;
import com.fr.web.Repository;

public class ToolBarNumberEditor extends NumberEditor
{
  public Listener[] createListeners(Repository paramRepository)
  {
    return new Listener[] { new Listener(WebContentUtils.getContentPanel(paramRepository), "startload", new JavaScriptImpl(ActionUtils.getDisableAction())), new Listener(WebContentUtils.getContentPanel(paramRepository), "afterload", new JavaScriptImpl(onContentPanelAfterLoad(paramRepository))) };
  }

  protected String onContentPanelAfterLoad(Repository paramRepository)
  {
    return ActionUtils.getEnableAction();
  }

  public boolean equals(Object paramObject)
  {
    return ((paramObject instanceof ToolBarNumberEditor) && (super.equals(paramObject)));
  }
}